<ul class="nav flex-column" th:fragment="menu">
    <li class="nav-item" th:each="menu : ${session.menuList}">
        <a class="nav-link active" aria-current="page" th:href="${menu.href}" th:text="${menu.name}">Active</a>
    </li>
</ul>